package com.leo.util;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

/**
 * @ClassName: DBUtil
 * @Description: ${description}
 * @Author: leo825
 * @Date: 2020-01-02 15:05
 * @Version: 1.0
 */
@Component
public class DBUtil {

    /**
     * 获取jdbcTemplate对象
     * @return
     */
    public static JdbcTemplate getJdbcTemple() {
        return (JdbcTemplate) ApplicationContextUtil.getBean("jdbcTemplate");
    }
}
